package com.ruoyi.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备主表对象 device_main
 *
 * @author jack
 * @date 2025-01-06
 */
public class DeviceMain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 设备唯一编码 */
    @Excel(name = "设备唯一编码")
    private String deviceSn;

    /** 设备图像URL */
    @Excel(name = "设备图像URL")
    private String devicePic;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private Integer deviceStatus;

    /** 电量 */
    @Excel(name = "电量")
    private Integer devicePower;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setDeviceName(String deviceName)
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName()
    {
        return deviceName;
    }
    public void setDeviceSn(String deviceSn)
    {
        this.deviceSn = deviceSn;
    }

    public String getDeviceSn()
    {
        return deviceSn;
    }
    public void setDevicePic(String devicePic)
    {
        this.devicePic = devicePic;
    }

    public String getDevicePic()
    {
        return devicePic;
    }
    public void setDeviceStatus(Integer deviceStatus)
    {
        this.deviceStatus = deviceStatus;
    }

    public Integer getDeviceStatus()
    {
        return deviceStatus;
    }
    public void setDevicePower(Integer devicePower)
    {
        this.devicePower = devicePower;
    }

    public Integer getDevicePower()
    {
        return devicePower;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("deviceName", getDeviceName())
                .append("deviceSn", getDeviceSn())
                .append("devicePic", getDevicePic())
                .append("deviceStatus", getDeviceStatus())
                .append("devicePower", getDevicePower())
                .append("createTime", getCreateTime())
                .toString();
    }
}
